package com.ibm.risk.irmp.common.utils;

import java.io.File;

public interface HDFSUtil {

    /**
     * 上传本地文件到HDFS
     *
     * @param localFile
     * @param hdfsFileName e.g. hdfs://192.168.1.103:9000/xxx
     */
    void upload(File localFile, String hdfsFileName) throws Exception;

    /**
     * HDFS文件下载
     *
     * @param hdfsFileName  HDFS文件路径
     * @param localFileName 本地文件路径
     */
    void download(String hdfsFileName, String localFileName) throws Exception;

    String[] list(String path) throws Exception;
}
